/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.facade.order.settlement;

import info.peigen.hotpot.common.core.lang.money.Money;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * <b>(SettlementSameCurrencyOrder)</b>
 * 结算交易-同金额结算
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/8/12
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class SettlementSameCurrencyOrder extends AbstractAccountSettlementServiceOrder {
    /** 付款账户Id */
    @NotEmpty
    String                             payerAccountId;
    /** 总金额 */
    @NotNull
    Money                              settleTotalAmount;
    /** 结算明细 */
    @NotEmpty
    List<SettlementSameCurrencyDetail> settlements;
}